package com.poizon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
public class Userinfo {
  @TableId(type = IdType.AUTO)
  private Long id;
  private Long userId;
  private String face;
  private String nickname;
  private String gender;
  private String city;
  private String style;
  private Date birthday;
  private Date registerTime;

  public Userinfo(Long userId, String face, String nickname, Date registerTime) {
    this.userId = userId;
    this.face = face;
    this.nickname = nickname;
    this.registerTime = registerTime;
  }
}
